@if (Session::has('danger') || count($errors)>0)
	<div class="alert alert-danger alert-dismissible">
		<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		<h4><i class="icon fa fa-ban"></i> 错误：</h4>

		@if( Session::has('danger') )
			{{ Session::get('danger') }}
		@endif

		@if( count($errors) > 0 )
			<ul>
				@foreach($errors->all() as $error)
					<li>{{ $error }}</li>
				@endforeach
			</ul>
		@endif
	</div>
@endif

@if (Session::has('success'))
	<div class="alert alert-success alert-dismissible">
		<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		<h4><i class="icon fa fa-check"></i> 成功：</h4> {{ Session::get('success') }}
	</div>
@endif

@if (Session::has('warning'))
	<div class="alert alert-warning alert-dismissible">
		<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		<h4><i class="icon fa fa-warning"></i> 警告：</h4> {{ Session::get('warning') }}
	</div>
@endif

@if (Session::has('message'))
	<div class="alert alert-info alert-dismissible">
		<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		<h4><i class="icon fa fa-info"></i> 消息：</h4>{{ Session::get('message') }}
	</div>
@endif